package com.finance.model;

import com.finance.model.types.CurrencyEnum;
import com.finance.model.types.ItemTypeEnum;
import java.math.BigDecimal;
import java.util.Date;

/**
 *
 * @author Administrator
 */
public class Item {

    private long id;
    private long userAccountID;
    private Date date;
    private ItemTypeEnum type;
    private Source source;
    private String description;
    private BigDecimal amount;
    private CurrencyEnum currency;

    public Item() {
    }

    public Item(long id, long userAccountID, Date date, ItemTypeEnum type, Source source, String description, BigDecimal amount, CurrencyEnum currency) {
        this.id = id;
        this.userAccountID = userAccountID;
        this.date = date;
        this.type = type;
        this.source = source;
        this.description = description;
        this.amount = amount;
        this.currency = currency;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public long getUserAccountID() {
        return userAccountID;
    }

    public void setUserAccountID(long userAccountID) {
        this.userAccountID = userAccountID;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public ItemTypeEnum getType() {
        return type;
    }

    public void setType(ItemTypeEnum type) {
        this.type = type;
    }

    public Source getSource() {
        return source;
    }

    public void setSource(Source source) {
        this.source = source;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public CurrencyEnum getCurrency() {
        return currency;
    }

    public void setCurrency(CurrencyEnum currency) {
        this.currency = currency;
    }
}
